import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'test-ng-class',
  templateUrl: './ng-class.component.html',
  styleUrls: ['./ng-class.component.scss']
})
export class NgClassComponent implements OnInit {

  public currentClass:{};
  public canSave:boolean=true;
  public canMody:boolean=true;
  public canSpe:boolean=true;
  constructor() { }

  ngOnInit() {
  }
  setCurrentClass(){
    this.currentClass={
      'saveable':this.canSave,
      'modified':this.canMody,
      'special':this.canSpe
    }
  }

}
